#include "stdafx.h"
#include "Vault.h"


Vault::Vault()
{
}


Vault::~Vault()
{
}

void Vault::load(tinyxml2::XMLElement * element)
{
    if (element == nullptr)
    {
        return;
    }

    const char *id = element->Attribute("id");
    if (id)
    {
        id_ = id;
    }

    const char *host = element->Attribute("host");
    if (host)
    {
        host_ = host;
    }

    port_ = element->IntAttribute("port", 0);
}
